package com.ysx.day20210925.ch06;

import java.util.HashMap;

public class Ch01 {

    public static void main(String[] args) {
       /* String phone="13267128038";
        String name="黄后林";*/

        //希望 13267128038 和  "黄后林"  电话薄

        // 对  2    键值对
        // "13267128038"  KEY =键
        // "黄后林"        VALUE=值

        HashMap map = new HashMap();
        map.put("13267128038","黄后林");
        map.put("13267128039","李伟伟");

        //13267128038这个手机号码是谁的?

        Object name = map.get("13267128038");
        System.out.println(name);


    }
}
